﻿using HslCommunication;
using HslCommunication.ModBus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DifferentDLLVersionCompatible2
{
    class Program
    {
        static void Main(string[] args)
        {
            ModbusRtu modbusRtu = new ModbusRtu();
            OperateResult<byte[]> res = modbusRtu.ReadBase(new byte[1]);
            Console.WriteLine(res.ToJsonString());
            Console.Read();
        }
    }
}
